package com.ruoyi.wb.mapper;

import com.ruoyi.wb.domain.WbClassifyYearContentThree;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 维保年度类目三级表Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-18
 */
public interface WbClassifyYearContentThreeMapper 
{
    /**
     * 查询维保年度类目三级表
     * 
     * @param classifyContentId 维保年度类目三级表主键
     * @return 维保年度类目三级表
     */
    public WbClassifyYearContentThree selectWbClassifyYearContentThreeByClassifyContentId(Long classifyContentId);

    /**
     * 查询维保年度类目三级表列表
     * 
     * @param wbClassifyYearContentThree 维保年度类目三级表
     * @return 维保年度类目三级表集合
     */
    public List<WbClassifyYearContentThree> selectWbClassifyYearContentThreeList(WbClassifyYearContentThree wbClassifyYearContentThree);

    /**
     * 新增维保年度类目三级表
     * 
     * @param wbClassifyYearContentThree 维保年度类目三级表
     * @return 结果
     */
    public int insertWbClassifyYearContentThree(WbClassifyYearContentThree wbClassifyYearContentThree);

    /**
     * 修改维保年度类目三级表
     * 
     * @param wbClassifyYearContentThree 维保年度类目三级表
     * @return 结果
     */
    public int updateWbClassifyYearContentThree(WbClassifyYearContentThree wbClassifyYearContentThree);

    /**
     * 删除维保年度类目三级表
     * 
     * @param classifyContentId 维保年度类目三级表主键
     * @return 结果
     */
    public int deleteWbClassifyYearContentThreeByClassifyContentId(Long classifyContentId);

    /**
     * 批量删除维保年度类目三级表
     * 
     * @param classifyContentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWbClassifyYearContentThreeByClassifyContentIds(Long[] classifyContentIds);

    /**
     * 批量新增三级模板
     * @param wbClassifyYearContentThrees
     * @return
     */
    int batchInsert(@Param("wbClassifyYearContentThrees") List<WbClassifyYearContentThree> wbClassifyYearContentThrees);

    List<WbClassifyYearContentThree> selectWbClassifyYearContentThreeListByClassifyYearContentIds(@Param("classifyYearContentIds") List<Long> classifyYearContentIds);

    //根据二级id删除三级
    int deleteWbClassifyYearContentThreeByParentIds(@Param("classifyContentIds") List<Long> classifyContentIds);


}
